/**
 * Created by Administrator on 2017/6/29.
 */
$('a.btn.btn-danger.del').on('click', function () {
  var a = $(this);
  var url = a.attr('data-url');
  var id = a.attr('data-id');
  $.post(url, {id: id}, function (data) {
    if (data == 'true') {
      a.parents('tr').remove();
    }
  });
});